package dao.impl;

import dao.InformMessageDao;
import domian.InformMessage;
import utils.BaseDAO;

public class InformMessageDaoImpl implements InformMessageDao {
    @Override
    public Integer addInform(InformMessage informMessage) {
        System.out.println(informMessage);
        String sql ="insert into  m_inform(uid,message,date) values(?,?,?)";
        Object[] arr={informMessage.getUid(),informMessage.getMessage(),informMessage.getDate()};
        return BaseDAO.executeUpdate(sql,arr);
    }
}
